package com.hiedu.controller;

import com.hiedu.beans.vo.UserVO;
import com.hiedu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ProjectName: hi-app
 * @Titile: UserController
 * @Author: 86180
 * @Description: 用户控制
 */
@RestController
@RequestMapping("/api/user")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/order/{userId}")
    public Object getUserInfo(@PathVariable Integer userId){
        UserVO userVO = userService.getUserInfo(userId);
        return userVO;
    }
}
